#include "RadixSort.h"
#include "SimpleSelectionSort.h"
#include "ShellSort.h"
#include "QuickSort.h"
#include "MergeSort.h"
#include "HeapSort.h"

int main(int argc, char**argv)
{
	if (argc < 2)
	{
	cout << "please input something." << endl;
	return 0;
	}

	int arr[TestNumber + 2] = {0};

	for (int i = 0; i < TestNumber; i++)
	{
	arr[i] = atoi(argv[i + 2]);
	}

	string sortName = argv[1];
	if (0)
	{

	}
	else if (sortName == "HeapSort")
	{
		HeapSort result = HeapSort(arr, TestNumber);
	}
	else if (sortName == "MergeSort")
	{
		MergeSort result = MergeSort(arr, TestNumber);
	}
	else if (sortName == "QuickSort")
	{
		QuickSort result = QuickSort(arr, TestNumber);
	}
	else if (sortName == "ShellSort")
	{
		ShellSort result = ShellSort(arr, TestNumber);
	}
	else if (sortName == "SimpleSelectionSort")
	{
		SimpleSelectionSort result = SimpleSelectionSort(arr, TestNumber);
	}
	else if (sortName == "RadixSort")
	{
		RadixSort result = RadixSort(arr, TestNumber);
	}
	else
	{

	}
	return 1;
}

/*
int main()
{
	
	int arr[TestNumber + 2] = {0};
	srand(3);
	int i;
	for (i = 0; i < TestNumber; i++)
	{
		arr[i] = rand();
		cout << arr[i] << " ";
	}
	cout << endl;
	
	
	return 0;
}*/